// #include <linux/platform_device.h>

struct platform_device {
  const char  *name;
  int    id;
  bool    id_auto;
  struct device  dev;
  u32    num_resources;
  struct resource  *resource;

  const struct platform_device_id  *id_entry;

  /* MFD cell pointer */
  struct mfd_cell *mfd_cell;

  /* arch specific additions */
  struct pdev_archdata  archdata;
};


/*********************************************************/ 
// include <linux/ioport.h>
struct resource {
 const char *name;
 unsigned long start, end;
 unsigned long flags;
 struct resource *parent, *sibling, *child;
};